<template>
  <div class="filedecryption">
    <div class="record df record1">
      <div class="div1"></div>
      <div class="name">解密当前文件</div>
    </div>
    <div class="downfile df" v-for="(item, index) in list" :key="index">
      <div class="downfilediv">{{ item.name }}</div>
      <img class="downfileimg cp" src="@/assets/img/filedel.png" alt="" />
    </div>
    <div class="filedecryptionadd cp" @click="handleAdd">+添加文件</div>
    <div
      class="filedecryptionsc cp"
      :class="state === 0 ? 'filedecryptionsc1' : ''"
    >
      解密文件
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      index: 1,
      state: 0,
      list: [],
    };
  },
  methods: {
    handleAdd() {
      this.state = 1;
      this.list.push({
        name: "XXXXdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.EXLS",
      });
    },
  },
};
</script>

<style lang="less" scoped>
.filedecryption {
  margin-top: 24px;
  position: relative;
  height: 640px;
  width: 1060px;
  .record1 {
    margin: 24px 0 0 60px;
  }
  .filedecryptionadd {
    width: 240px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 2px solid #595959;
    text-align: center;
    line-height: 44px;
    margin: 24px 0 0 72px;
    font-weight: bold;
    font-size: 24px;
    color: #262626;
  }
  .filedecryptionsc {
    width: 320px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.15);
    border-radius: 40px;
    border: 4px solid #ffffff;
    text-align: center;
    line-height: 70px;
    position: absolute;
    bottom: 120px;
    right: 64px;
    font-weight: bold;
    font-size: 32px;
  }
  .filedecryptionsc1 {
    color: #bfbfbf;
  }

  .downfile {
    margin: 32px 0 0 88px;
    .downfilediv {
      width: 800px;
      height: 24px;
      font-family: MicrosoftYaHei;
      font-size: 20px;
      color: #262626;
      line-height: 24px;
      text-align: left;
      font-style: normal;
      margin-top: 8px;
    }

    .downfileimg {
      width: 40px;
      height: 40px;
    }
  }
}
</style>